const getters = {
  token: (state) => state.user.token, // 建立token的快捷访问
  userName: (state) => state.user.userInfo.username, // 用户名字
  userId: (state) => state.user.userInfo.id, // 用户id
  staffPhoto: (state) => state.user.userInfo.staffPhoto, // 头像
  companyId: (state) => state.user.userInfo.companyId, // 公司id
  routes: (state) => state.permission.routes, // 添加动态路由后的路由规则

  sidebar: (state) => state.app.sidebar,
  device: (state) => state.app.device,
  avatar: (state) => state.user.avatar,
  name: (state) => state.user.userInfo.username
}
export default getters
